Don't try to use the context language when auto-creating
authorBrad Jorsch <bjorsch@wikimedia.org>
Mon, 13 Jun 2016 16:51:22 +0000 (12:51 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Mon, 13 Jun 2016 16:52:41 +0000 (12:52 -0400)
Most of the time the context language won't be ready yet, because it
needs the user we're auto-creating.

Bug: T124367
Change-Id: I0376647be33e81593101378217b37363125cfddf

includes/auth/AuthManager.php

index 2ed0d61..7ca9c6a 100644 (file)
@@ -1650,7 +1650,7 @@ class AuthManager implements LoggerAwareInterface {
                        throw $ex;
                }
 
-               $this->setDefaultUserOptions( $user, true );
+               $this->setDefaultUserOptions( $user, false );
 
                // Inform the providers
                $this->callMethodOnProviders( 6, 'autoCreatedAccount', [ $user, $source ] );